package edu.dqsy.mzq_translate.helper;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

public class ContactOpenHelper extends SQLiteOpenHelper {


    public ContactOpenHelper(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

//    @Override
//    public void onCreate(SQLiteDatabase sqLiteDatabase) {
//
//    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table userInfo(_id integer primary key autoincrement,username varchar(20),password varchar(20))");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int i, int i1) {

    }
    public void del(String name){

    }

}
